﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaAppBase;

using NSCore;

using DotSpatial.Data;

using FXnaInfrastructure;



namespace NSApplication
{
    [Serializable]
    public class Project : ProjectBase
    {


        public Project()
        {

            this._nSData = new NSData();

            this._nSResult = new NSResult();




            

          

            //这里我们加入一些默认值


            //定义默认的坐标范围为 

            this.CommonData.WorkBoundary.LocalExtent  = new Extent(-500, -500,500,500);


            //默认创建一个网格作为接受体

            FGrid fgrid=new FGrid (0,-500,-500,101,101,1000,1000);

            int index= this._nSData.GridLayer.IdGenerator.GetNextIndex();

            string id = "grid" + index.ToString();
            string desc = "网格"+index.ToString ();

            GridReceptor grid = new GridReceptor(id,fgrid);

            grid.Desc = desc;

            this._nSData.GridLayer.AddShape(grid);



            






           
        }

        NSData _nSData;

        public NSData NSData
        {
            get { return _nSData; }
           
        }



        NSResult _nSResult;


        public NSResult NSResult
        {
            get { return _nSResult; }
            
        }



     


    }
}
